package onlineLanguageQuiz

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method("GET")
        url("/api/v3/onlineLanguageQuizzes/languages")
    }
    response {
        status(200)
        body("""
            ["java","node"]
        """)
        bodyMatchers {
            jsonPath('$[*]', byRegex("[\\s\\S]+"))
        }
        headers {
            contentType(applicationJsonUtf8())
        }
    }
}
